<template>
    <el-container>
        <el-header id="manageHeader" height="80px" style="background-color:slategray">
            <!-- 搜索表单 -->
            <el-form :inline="true" :model="searchBase" class="demo-form-inline" style="margin-top: 1.5%;">
                <el-form-item label="教师号">
                    <el-input v-model="searchBase.teacherid" placeholder="教师号" style="width: 110px;">
                    </el-input>
                </el-form-item>
                <el-form-item label="姓名">
                    <el-input v-model="searchBase.teacherName" placeholder="姓名" style="width: 110px;">
                    </el-input>
                </el-form-item>

                <!-- <el-form-item label="政治面貌">
                    <el-select v-model="value3" style="width:100px" placeholder="请选择">
                        <el-option v-for="item in options3" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item> -->

                <el-form-item label="学院">
                    <el-select v-model="value1" style="width:100px" placeholder="请选择">
                        <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="部门">
                    <el-select v-model="value2" style="width:90px" placeholder="请选择">
                        <el-option v-for="item in options2" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>


                <el-form-item label="职称">
                    <el-select v-model="value4" style="width:90px" placeholder="请选择">
                        <el-option v-for="item in options4" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="导师">
                    <el-select v-model="value5" style="width:70px" placeholder="请选择">
                        <el-option v-for="item in options5" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>

                <el-form-item>
                    <el-button type="primary" @click="onSubmit">查询</el-button>
                </el-form-item>
                <!-- 导出数据为Excel-->
                <el-form-item>
                   <download-excel class="export-excel-wrapper" :data="teacherinfo" :fields="json_fields" name="教师基本信息.xls">
            <!-- 上面可以自定义自己的样式，还可以引用其他组件button -->
            <el-button type="primary" style="width:120px">导出EXCEL</el-button>
          </download-excel>
                </el-form-item>
            </el-form>
        </el-header>
        <el-main>

            <template>
                <el-table :data="teacherinfo" style="width: 100%" @selection-change="handleSelectionChange">
                    <el-table-column type="selection" width="55">
                    </el-table-column>
                    <el-table-column prop="teacherid" label="教师号" align="center" width="80px">
                    </el-table-column>

                    <el-table-column prop="teacherName" label="姓名" align="center" width="80px">
                    </el-table-column>
                    <el-table-column prop="sex" label="性别" align="center" width="60px">
                    </el-table-column>
                    <el-table-column prop="title" label="职称" align="center" width="100px">
                    </el-table-column>
                    <el-table-column prop="education" label="学位" align="center" width="80px">
                    </el-table-column>
                    <el-table-column prop="tel" label="手机号" align="center" width="130px">
                    </el-table-column>
                    <el-table-column prop="tutor" label="导师" align="center" width="80px">
                    </el-table-column>
                    <el-table-column prop="academyName" label="学院" align="center" width="90px">
                    </el-table-column>
                    <el-table-column prop="departmentName" label="部门" align="center" width="80px">
                    </el-table-column>
                    <el-table-column prop="mail" label="邮箱" align="center" width="180px">
                    </el-table-column>

                    <el-table-column align="center" label="操作">
                        <template slot-scope="scope">

                            <!-- <el-button type="danger" @click="deleteById(scope.row)">删除</el-button> -->
                            <el-button type="success" @click="showTeacherDetail(scope.row)">详情</el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </template>
            <!-- 详情 带上修改-->
            <el-dialog title="教师基本信息" :visible.sync="dialogTeacherDetailVisible" width="90%"
                :close-on-click-modal="false">

                <!-- 卡片式查看教师信息 -->
                <el-tabs type="card" tab-position="top" height="550" ref="watchTeacherDetail">
                    <el-tab-pane label="教师基本信息" height="250">
                        <!-- div里存放基本信息 -->
                        <div id="teacherDetailList" ref="teacherDetailList">
                            <el-descriptions class="margin-top" title="教师基本信息" :column="3" border>

                                <el-descriptions-item label="教师号">{{ teacherBaseDetail.teacherid }}
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template slot="label">
                                        <i class="el-icon-user"></i> 姓名 </template>
                                    {{teacherBaseDetail.teacherName}}
                                </el-descriptions-item>
                                <el-descriptions-item label="性别">{{ teacherBaseDetail.sex }}
                                </el-descriptions-item>
                                <el-descriptions-item label="出生日期">{{ teacherBaseDetail.birth }}
                                </el-descriptions-item>
                                <el-descriptions-item label="民族">{{ teacherBaseDetail.nation }}
                                </el-descriptions-item>
                                <el-descriptions-item label="身份证件号">{{ teacherBaseDetail.numberID }}
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template slot="label">
                                        <i class="el-icon-location-outline"></i> 籍贯 </template>
                                    {{teacherBaseDetail.place}}
                                </el-descriptions-item>
                                <el-descriptions-item label="政治面貌">{{ teacherBaseDetail.polstatus }}
                                </el-descriptions-item>
                                <el-descriptions-item label="研究生导师">{{ teacherBaseDetail.tutor }}
                                </el-descriptions-item>
                                <el-descriptions-item label="教育背景">{{ teacherBaseDetail.education }}
                                </el-descriptions-item>
                                <el-descriptions-item label="婚姻状况">{{ teacherBaseDetail.marriage }}
                                </el-descriptions-item>
                                <el-descriptions-item label="入职时间">{{ teacherBaseDetail.entryTime }}
                                </el-descriptions-item>
                                <el-descriptions-item label="职称">{{ teacherBaseDetail.professionDrgree }}
                                </el-descriptions-item>
                                <el-descriptions-item>
                                    <template slot="label">
                                        <i class="el-icon-phone-outline"></i> 电话 </template>
                                    {{teacherBaseDetail.tel}}
                                </el-descriptions-item>
                                <el-descriptions-item label="电子邮箱">{{ teacherBaseDetail.mail }}
                                </el-descriptions-item>
                                <el-descriptions-item label="人员状态">{{ teacherBaseDetail.status }}
                                </el-descriptions-item>
                                <el-descriptions-item label="密码">{{ teacherBaseDetail.password }}
                                </el-descriptions-item>
                            </el-descriptions>
                        </div>
                    </el-tab-pane>
                    <el-tab-pane label="教师拓展信息">
                        <el-tabs v-model="activeName">
                            <el-tab-pane label="教育背景" name="first">
                                <div id="teacherDetailList" ref="teacherDetailList">
                                    <el-descriptions class="margin-top" :column="3" border>

                                        <el-descriptions-item label="就读时间">{{ teacherBaseDetail.beginTime }}
                                        </el-descriptions-item>

                                        <el-descriptions-item label="毕业时间">{{ teacherBaseDetail.endTime }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="毕业院校">{{ teacherBaseDetail.graduationSchool }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="所修专业">{{ teacherBaseDetail.speciality }}
                                        </el-descriptions-item>
                                    </el-descriptions>
                                </div>
                            </el-tab-pane>
                            <el-tab-pane label="荣誉称号" name="second">
                                <div v-if="Honor_titleList==''">
                                    <el-empty description="暂无荣誉"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in Honor_titleList" :key="mlist.index" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`编号:${mlist.honorNO}`" :column="3"
                                            border>

                                            <el-descriptions-item label="称号名称">{{ mlist.honorName }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="荣誉等级">{{ mlist.honorLevel }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="获取时间">{{ mlist.acquireTime }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="证书">
                                                  <el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.certificate"
                          :preview-src-list="[mlist.certificate]">
                          </el-image>
                                            </el-descriptions-item>
                                            <el-descriptions-item label="颁发部门">{{ mlist.Issuingdep }}
                                            </el-descriptions-item>

                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="年度考核" name="third">
                                <div v-if="Annual_examinationList ==''">
                                    <el-empty description="暂无考核信息"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in Annual_examinationList" :key="mlist.index"
                                        ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`编号:${mlist.checkNO}`" :column="3"
                                            border>

                                            <el-descriptions-item label="考核项目">{{ mlist.checkName }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="考核结果">{{ mlist.checkResult }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="考核时间">{{ mlist.checkDate}}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="考核年份">{{ mlist.checkYear }}
                                            </el-descriptions-item>

                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="获奖情况" name="fourth">

                                <div v-if="AwardList ==''">
                                    <el-empty description="暂无获奖信息"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in AwardList" :key="mlist.index" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`编号:${mlist.awardNO}`" :column="3"
                                            border>

                                            <el-descriptions-item label="获奖时间">{{ mlist.awardTime }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="获奖名称">{{ mlist.awardName }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="授予单位">{{ mlist.awardIns }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="奖项级别">{{ mlist.awardLevel }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="获奖证书">
                                                  <el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.awardEnclosure"
                          :preview-src-list="[mlist.awardEnclosure]">
                          </el-image>
                                            </el-descriptions-item>
                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="科研情况" name="fifth">

                                <div v-if="Research_projectList ==''">
                                    <el-empty description="暂无科研信息"></el-empty>
                                </div>
                                <div v-else>
                                    <div id="teacherDetailList" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" v-for="mlist in Research_projectList"
                                            :key="mlist.index" :title="`编号:${mlist.projectNO}`" :column="3" border>

                                            <el-descriptions-item label="项目名">{{ mlist.projectName }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="项目经费">{{ mlist.projectFund }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="参与人员">{{ mlist.projectperson }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="科研方向">{{ mlist.projectDir }}
                                            </el-descriptions-item>
                                            <!-- <el-descriptions-item label="附件">{{ mlist.awardEnclosure }}
                    </el-descriptions-item> -->
                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="论文情况" name="sixth">

                                <div v-if="thesislist ==''">
                                    <el-empty description="暂无论文"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="m in thesislist" :key="m.thesisNo" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`论文名:${m.thesisName}`" :column="3"
                                            border>

                                            <el-descriptions-item label="CN号">{{ m.thesisNO }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="论文名">{{ m.thesisName }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="发表时间">{{m.thesisDate }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="期刊类别">{{ m.thesisJour }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="论文类别">{{ m.category }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="第一作者">{{ m.thesisauthor }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="通讯作者">{{ m.thesisauthorTwo }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="附件">
                                                 <el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.thesisEnclosure"
                          :preview-src-list="[mlist.thesisEnclosure]">
                          </el-image>
                                            </el-descriptions-item>
                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="著作情况" name="seventh">
                                <div v-if="OpusList ==''">
                                    <el-empty description="暂无著作"></el-empty>
                                </div>
                                <div v-else>

                                </div>
                                <div v-for="mlist in OpusList" :key="mlist.index" ref="teacherDetailList">
                                    <el-descriptions class="margin-top" :title="`ISCN号:${mlist.opusNO}`" :column="3"
                                        border>

                                        <!-- <el-descriptions-item label="著作编号">{{ mlist.opusNO }}
                    </el-descriptions-item> -->

                                        <el-descriptions-item label="著作名">{{ mlist.opusName }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="出版社">{{ mlist.publicer }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="著作类别">{{ mlist.opuscategory }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="著作级别">{{ mlist.opuslevel }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="参与人员">{{ mlist.opusperson }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="著作详情">{{ mlist.opusdetail }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="附件">
                                             <el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.opusEnclosure"
                          :preview-src-list="[mlist.opusEnclosure]">
                          </el-image>
                                        </el-descriptions-item>
                                    </el-descriptions>
                                </div>
                            </el-tab-pane>
                            <el-tab-pane label="专利情况" name="eighth">

                                <div v-if="PatentList ==''">
                                    <el-empty description="暂无考核信息"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in PatentList" :key="mlist.patentNO" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`专利号:${mlist.patentNO}`" :column="3"
                                            border>

                                            <!-- <el-descriptions-item label="专利号">{{ mlist.patentNO }}
                    </el-descriptions-item> -->

                                            <el-descriptions-item label="专利名称">{{ mlist.patentName }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="专利等级">{{ mlist.patentlevel }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="专利类别">{{ mlist.patenttype }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="专利说明">{{ mlist.patentexplain }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="有效时间">{{ mlist.validtime }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="附件"><el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.patentEnclosure"
                          :preview-src-list="[mlist.patentEnclosure]">
                          </el-image>
                                            </el-descriptions-item>
                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="培训经历" name="ninth">
                                <div v-if="TrainList ==''">
                                    <el-empty description="暂无培训信息"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in TrainList" :key="mlist.index" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`${mlist.trainNO}`" :column="3"
                                            border>

                                            <el-descriptions-item label="培训时间">{{ mlist.trainTime }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="培训地点">{{ mlist.trainadd }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="培训课题">{{ mlist.traintit }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="培训用书">{{ mlist.trainbook }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="培训单位">{{ mlist.trainposition }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="附件"><el-image
                          style="width: 100px; height: 100px"
                          :src="mlist.trainEnclosure"
                          :preview-src-list="[mlist.trainEnclosure]">
                          </el-image>
                                            </el-descriptions-item>

                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="研究生导师" v-if="teacherBaseDetail.tutor =='是'" name="tenth">
                                <div ref="teacherDetailList">
                                    <el-descriptions class="margin-top" title="具体信息" :column="3" border>

                                        <el-descriptions-item label="研究课题">{{ teacherBaseDetail.tutortitle }}
                                        </el-descriptions-item>

                                        <el-descriptions-item label="所属专业系">{{ teacherBaseDetail.specialize }}
                                        </el-descriptions-item>

                                        <el-descriptions-item label="研究方向">{{ teacherBaseDetail.researchdir }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="所带学生数">{{ teacherBaseDetail.stuNum }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="学位">{{ teacherBaseDetail.degree }}
                                        </el-descriptions-item>
                                        <el-descriptions-item label="邮箱">{{ teacherBaseDetail.email }}
                                        </el-descriptions-item>

                                    </el-descriptions>
                                </div>
                            </el-tab-pane>
                            <el-tab-pane label="工作经历" name="elevant">
                                <div v-if="WorkList ==''">
                                    <el-empty description="暂无工作经历"></el-empty>
                                </div>
                                <div v-else>
                                    <div v-for="mlist in WorkList" :key="mlist.index" ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`${mlist.workadd}`" :column="3"
                                            border>

                                            <el-descriptions-item label="就职日期">{{ mlist.intime }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="离职日期">{{ mlist.outtime }}
                                            </el-descriptions-item>

                                            <el-descriptions-item label="工作地点">{{ mlist.workadd }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="工作职位">{{ mlist.workposition }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="工作内容">{{ mlist.workcontent }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="附件">{{ mlist.trainEnclosure }}
                                            </el-descriptions-item>

                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                            <el-tab-pane label="教学工作" name="twelve">
                                <div v-if="Teach_workList ==''">
                                    <el-empty description="暂无教学工作"></el-empty>
                                </div>
                                <div v-else>
                                    <div id="teacherDetailList" v-for="mlist in Teach_workList" :key="mlist.index"
                                        ref="teacherDetailList">
                                        <el-descriptions class="margin-top" :title="`学院:${mlist.faculty}`" :column="3"
                                            border>

                                            <el-descriptions-item label="学期">{{ mlist.term }}
                                            </el-descriptions-item>

                                            <!-- <el-descriptions-item label="学院">{{ mlist.faculty }}
                    </el-descriptions-item> -->

                                            <el-descriptions-item label="课程名称">{{ mlist.courseName }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="授课班级">{{ mlist.Classname }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="授课时数">{{ mlist.teachHour }}
                                            </el-descriptions-item>
                                            <el-descriptions-item label="课程学分">{{ mlist.credit }}
                                            </el-descriptions-item>

                                        </el-descriptions>
                                    </div>
                                </div>

                            </el-tab-pane>
                        </el-tabs>
                    </el-tab-pane>
                </el-tabs>
            </el-dialog>
            <!--分页工具条-->
            <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="currentPage"  
                layout="total,  prev, pager, next, jumper" :total="totalCount ">
            </el-pagination>
        </el-main>
    </el-container>
</template>

<script>
import axios from "axios";

// 定义一条教师的信息


export default {
    name: "Leaderteacher",
    data() {
        return {
            // 接受学院的信息
            academyName: '',
            activeName:"first",
            // 搜索表单的数据
            searchBase: {
                teacherid: "",
                teacherName: "",
                title: "",
                place: "",
                academyName: "",
                departmentName: "",
                tutor: "",
                polstatus: "",

            },
            json_fields: {
     "教师号":"teacherid",
     "姓名":"teacherName",
     "性别":"sex",
     "籍贯":"place",
     "出生日期":"birth",
     "身份证号":"numberID",
     "民族":"nation",
    "政治面貌":"polstatus",
    "入职时间":"entryTime",
    "电话":"tel",
    "电子邮箱":"mail",
    "婚姻状况":"marriage",
    "学历":"education",
    "研究生导师":"tutor",
    "职称":"title",
  },
            // 学院下拉框
            options1: [{
                value: '计算机学院',
                label: '计算机学院'
            }, {
                value: '外国语学院',
                label: '外国语学院'
            }, {
                value: '软件学院',
                label: '软件学院'
                }, {
                    value: '',
                    label: '无'
                }],
            value1: '',
            // 部门下拉框
            options2: [{
                value: '教务处',
                label: '教务处'
            }, {
                value: '科研部门',
                label: '科研部门'
            }, {
                value: '教师工作部',
                label: '教师工作部'
                }, {
                    value: '',
                    label: '无'
                }],
            value2: '',
            // 政治面貌下拉框
            options3: [{
                value: '共产党员',
                label: '共产党员'
            }, {
                value: '群众',
                label: '群众'
            }, {
                value: '共青团员',
                label: '共青团员'
                }, {
                    value: '',
                    label: '无'
                }],
            value3: '',
            // 教师职称下拉框
            options4: [{
                value: '讲师',
                label: '讲师'
            }, {
                value: '副教授',
                label: '副教授'
            }, {
                value: '教授',
                label: '教授'
                }, {
                    value: '',
                    label: '无'
                }],
            value4: '',
            // 研究生导师

            options5: [{
                value: '是',
                label: '是'
            }, {
                value: '否',
                label: '否'
                }, {
                    value: '',
                    label: '无'
                }],
            value5: '',
            // 
            thesisTime: "",
            researchTime: "",
            // 教师的信息
            teacherinfo: [],
            //详情界面
            dialogTeacherDetailVisible: false,
            teacherBaseDetail: {},
            // 获取后端教师的拓展信息列表
            thesislist: '',
            Research_projectList: '',
            Annual_examinationList: '',
            AwardList: '',
            Honor_titleList: '',
            OpusList: '',
            Teach_workList: '',
            TrainList: '',
            PatentList: '',
            WorkList: '',
            // 分页的属性
            totalCount: 0,
            pageSize: 8,
            totalCount: 0,
            //被选中的id
            selectedIds: [],
            // 当前页码
            currentPage: 1,
        }
    }, mounted() {
        this.academyName = this.$store.state.Mark
        this.selectinfo();
    },
    methods: {
        //  获取后端列表的方法
        getThesis(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Thesis?id=" + id,
            }).then(resp => {
                this.thesislist = resp.data.data;
            })
        },
        getResearch_project(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Research_project?id=" + id,
            }).then(resp => {
                this.Research_projectList = resp.data.data;
            })
        },
        getAnnual_examination(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Annual_examination?id=" + id,
            }).then(resp => {
                this.Annual_examinationList = resp.data.data;
            })
        },
        getAward(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Award?id=" + id,
            }).then(resp => {
                this.AwardList = resp.data.data;
            })
        },
        getHonor_title(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Honor?id=" + id,
            }).then(resp => {
                this.Honor_titleList = resp.data.data;
            })
        },
        getOpus(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Opus?id=" + id,
            }).then(resp => {
                this.OpusList = resp.data.data;
            })
        },
        getTeach_work(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Teach_work?id=" + id,
            }).then(resp => {
                this.Teach_workList = resp.data.data;
            })
        },
        getTrain(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Train?id=" + id,
            }).then(resp => {
                this.TrainList = resp.data.data;
            })
        },
        getPatent(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Patent?id=" + id,
            }).then(resp => {
                this.PatentList = resp.data.data;
            })
        },
        getWork(id) {
            axios({
                method: "get",
                url: " http://localhost:8888/Col_Teacher/Work?id=" + id,
            }).then(resp => {
                this.WorkList = resp.data.data;
            })
        },
        selectinfo() {
            // 获取后端需要审核的数据

            axios({
                method: "post",
                url: " http://localhost:8888/lead_Teacher/" + this.currentPage + "/" + this.pageSize ,
                data: this.searchBase
            }).then(resp => {
                this.teacherinfo = resp.data.data.rows;
                this.totalCount = resp.data.data.totalCount;
            })
        },
        // 提交查询
        onSubmit() {
            this.searchBase.academyName = this.value1
            this.searchBase.departmentName = this.value2
            this.searchBase.polstatus = this.value3
            this.searchBase.title = this.value4;
            this.searchBase.tutor = this.value5
            // console.log(this.searchBase)
            this.selectinfo();
        },

        // // 复选框选中后执行的方法
        // handleSelectionChange(val) {
        //     this.multipleSelection = val;

        //     for (let i = 0; i < this.multipleSelection.length; i++) {
        //         this.selectedIds[i] = this.multipleSelection[i].id;
        //     }
        // },

  
     
        //显示教师详细信息界面
        showTeacherDetail(row) {
            this.dialogTeacherDetailVisible = true;
            this.teacherBaseDetail = row;
        },
      
        handleClick(tab, event) {
            console.log(tab, event);
        },
      
        //分页
        handleSizeChange(val) {
            // console.log(`每页 ${val} 条`);
            this.pageSize = val;
            this.selectinfo();
        },
        handleCurrentChange(val) {
            // console.log(`当前页: ${val}`);
            this.currentPage = val;
            this.selectinfo();
        }
    },

}
</script>

<style>
</style>